package com.woniuxy.lifeorder.service.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商家服务/产品表
 * </p>
 *
 * @author 陈瑜洲、吴继明
 * @since 2020-09-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("BUSINESS_GOODS")
@ApiModel(value="BusinessGoods对象", description="商家服务/产品表")
@KeySequence("BG_BUSINESS_GOODS")
public class BusinessGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "服务编号")
    @TableId(value = "GOODS_ID",type = IdType.INPUT)
    private Integer goodsId;
    @TableField("")
    private String goodsName;
    @ApiModelProperty(value = "服务序号")
    @TableField("GOODS_NUMBER")
    private String goodsNumber;

    @ApiModelProperty(value = "商品价格")
    @TableField("GOODS_PRICE")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "服务详情")
    @TableField("GOODS_DESCRIPTION")
    private String goodsDescription;

    @ApiModelProperty(value = "商家编号")
    @TableField("BUSINESS_ID")
    private Integer businessId;

    @ApiModelProperty(value = "商品状态")
    @TableField("GOODS_STATUS")
    private Integer goodsStatus;

    @ApiModelProperty(value = "商品价格单位编号")
    @TableField("GOODS_PAY_TYPE_ID")
    private String goodsPayTypeId;

    @ApiModelProperty(value = "商品图片")
    @TableField("GOODS_IMG")
    private String goodsImg;

    @ApiModelProperty(value = "数据插入时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "数据修改时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "软删除")
    @TableField("FLAG")
    private Integer flag;

    @ApiModelProperty(value = "商品数量")
    @TableField("GOODS_NUM")
    private Integer goodsNum;

}
